import { auth } from '@/util/index'

const Layout = () => import('@/layout/index.vue')

export default {
    path: '/lab_management',
    component: Layout,
    redirect: '/lab_management',
    name: 'lab_management',
    meta: {
        title: '实验室',
        icon: 'el-icon-office-building'
    },
    children: [
        {
            path: 'labManagement',
            name: 'labManagement',
            component: () => import('@/views/lab_management/sl_lab.vue'),
            meta: {
                title: '实验室信息管理',
                auth: ["user", "admin"]
            }
        },
        {
            path: 'teacherLabAppointment',
            name: 'teacherLabAppointment',
            component: () => import('@/views/lab_management/sl_lab_appointment.vue'),
            meta: {
                title: '教学实验室预约',
                auth: ["teacher"]
            }
        },
        {
            path: 'personalLabAppointment',
            name: 'personalLabAppointment',
            component: () => import('@/views/lab_management/sl_lab_personal_appointment.vue'),
            meta: {
                title: '个人实验室预约',
                auth: ["student","teacher"]
            }
        },
        {
            path: '实验室申请审批',
            name: 'lab_management3',
            component: () => import('@/views/lab_management/sl_lab_review.vue'),
            meta: {
                title: '实验室申请审批',
                auth: ["admin"]
            }
        }
    ]
}
